package com.gray.pool.async;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created on 2019/6/23.
 *
 * @author Grak
 * @since 1.0
 */
@RestController
public class ControllerTest2 {

    @Autowired
    AsyncTest asyncTest;

    @RequestMapping("/async1")
    public void sample1(){
        for(int i = 0;i< 41;i++){
            asyncTest.test1();
        }
    }

    @RequestMapping("/async2")
    public void sample2(){
        for(int i = 0;i< 41;i++){
            asyncTest.test2();
        }
    }
}
